package com.uzai.console.dto.pyq.llygoods;

import com.uzai.console.dto.QueryParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author liuqi
 * @date 2021年08月26日 14:31
 */
@ApiModel("朋友圈老林云商品列表分页查询参数")
@Data
public class PyqLlyGoodsQuery extends QueryParam  {

    private static final long serialVersionUID = -3146202009063039907L;

    @ApiModelProperty("商品id")
    private String itemId;

    @ApiModelProperty("页面查询入库时间(yyyy-MM-dd)")
    private String addDay;

    @ApiModelProperty("推广查询开始时间")
    private Integer promotionStartTime;

    @ApiModelProperty("推广查询结束时间")
    private Integer promotionEndTime;

    @ApiModelProperty(value = "商品id排除列表",hidden = true)
    private List<Long> goodsIdExcludeList;

    @ApiModelProperty("状态（0-不启用；1-启用）")
    private Integer status;

    @ApiModelProperty("平台（0-淘宝,1-拼多多）")
    private Integer platform;

    @ApiModelProperty("采集来源(会员id)")
    private Long userId;

    @ApiModelProperty("素材类型（2-图文，5-视频号）")
    private String materialType;

    public Integer getStatus() {
        if(status == null){
            status = 1; //默认查询启用状态
        }
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    public Integer getPlatform() {
        if(platform == null){
            platform = 0; //默认查询淘宝商品
        }
        return platform;
    }

    public void setPlatform(Integer platform) {
        this.platform = platform;
    }
}
